package com.huangyan;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    TestBean testBean;
//    @Autowired
//    AuTest auTest;

    @Value("${name}")
    String name;

    @GetMapping("/test/")
    public ManagerReturn test() {

//        System.out.println(auTest.test());
        ManagerReturn managerReturn=new ManagerReturn();
        managerReturn.setMessage("测试");
        return managerReturn;
    }

}
